﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Expression.Entity
{
    public class ExprResult
    {
        /// <summary>
        /// 执行状态
        /// </summary>
        public ResultState State { get; set; }
        /// <summary>
        /// 行号
        /// </summary>
        public int RowNum { get; set; }
        /// <summary>
        /// 执行结果
        /// </summary>
        public object Result { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrMsg { get; set; }

        public string GetErrInfo()
        {
            return "错误行号：" + RowNum + "，" + ErrMsg;
        }
    }
}
